<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>添加菜单</title>
<link rel="stylesheet" type="text/css" href="$request.getContextPath()/resources/layui/css/layui.css">
<link rel="stylesheet" href="$request.getContextPath()/resources/cws/system/permission/add.css"/>
</head>
<body>
<form class="layui-form" action="">
  <div class="layui-form-item">
    <label class="layui-form-label">权限内码</label>
    <div class="layui-input-inline">
      <input type="text" name="permissionCode" required  lay-verify="required" placeholder="请输入菜单内码" autocomplete="off" class="layui-input">
    </div>
    <div class="layui-form-mid layui-word-aux">权限内码不可重复</div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">权限名称</label>
    <div class="layui-input-inline">
      <input type="text" name="permissionName" required  lay-verify="required" placeholder="请输入菜单名称" autocomplete="off" class="layui-input">
    </div>
    <div class="layui-form-mid layui-word-aux">权限名称不可重复</div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">菜单</label>
    <div class="layui-input-inline">
      <select name="menuId" required lay-verify="required">
        #foreach($subMenu in $subMenus)
        <option value="$subMenu.menuId">$subMenu.menuName</option>
        #end
      </select>
    </div>
    <div class="layui-form-mid layui-word-aux">指定菜单</div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">权限值</label>
    <div class="layui-input-inline">
      <input type="text" name="permission" required  lay-verify="required" placeholder="请输入权限值" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">权限描述</label>
    <div class="layui-input-block">
      <textarea id="permissionDesc" name="remark" placeholder="请输入权限描述" class="layui-textarea"></textarea>
    </div>
  </div>
  <div class="layui-form-item">
    <div class="layui-input-block submit-btn">
      <button class="layui-btn" lay-submit lay-filter="addPermissionForm">立即提交</button>
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
  </div>
</form>
</body>
<script type="text/javascript" src="$request.getContextPath()/resources/jquery/jquery-3.1.0.min.js"></script>
<script type="text/javascript" src="$request.getContextPath()/resources/layui/layui.js"></script>
<script type="text/javascript" src="$request.getContextPath()/resources/layui/lay/modules/element.js"></script>
<script type="text/javascript" src="$request.getContextPath()/resources/cws/system/permission/add.js"></script>
</html>